package com.course.domain.service;

import com.course.domain.model.ClassPlan;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Justin on 2017/5/25.
 */
public interface ClassService {

    ClassPlan createPlan(ClassPlan plan);

    ClassPlan deletePlan(ClassPlan plan);

    ClassPlan updatePlan(ClassPlan plan);

    int updateTeacher(int planId, int teacherId);

    int updateRoom(int planId, String room);

    int updateMark(int planId, String mark);

    ClassPlan loadPlan(int planId);

    List<ClassPlan> findPlanByStudentIdAndCourseId(int studentId, int courseId);

    List<ClassPlan> findPlanByTeacherId(int teacherId);

    ClassPlan findNextPlanByStudentIdAndCourseId(int studentId, int courseId);

    ClassPlan findNextPlanByTeacherId(int teacherId);

    List<ClassPlan> findMarkByStudentIdAndCourseId(int studentId, int courseId);

    Page<ClassPlan> PageMarkByStudentIdAndCourseId(int studentId, int courseId, Pageable pageable);
}
